<?php

namespace App\Library\Requests\Auction;

use App\Library\Requests\Base\BasePageRequest;

class AuctionOrderPageRequest extends BasePageRequest
{
    public function rules(): array
    {
        $array = parent::rules();
        $array['sortColumn'] .= '|in:id,createdAt';
        return array_merge($array, [
            'status' => 'nullable|integer|between:0,5',
            'userId' => 'nullable|integer|min:0',
        ]);
    }
}
